<template>
    <div class="card">
        <div class="data-title">{{ title }}</div>
        <div class="data-count">{{ count }}</div>
    </div>
</template>

<script setup>
const props = defineProps({
    title: String,
    count: String
})
</script>

<style lang="scss">
.card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    // align-items: center;
    padding: 20px;
    width: 100%;
    height: 200px;
    background-color: #0cc890;
    border-radius: 10px;
    box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.16);
    font-size: 24px;
    font-weight: bold;
    color: #333333;

    &:hover {
        cursor: pointer;
        transform: translateY(-5px);
        transition: transform 0.3s ease;
    }

    .data-title {
        font-size: 16px;
        color: #e27216;
        margin-bottom: 10px;
        /* 增加一行，将浏览量的字放到左上角 */
    }

    .data-count {
        font-size: 48px;
        font-weight: bold;
        color: #333333;
        text-align: center;
        font-family: "Microsoft YaHei", sans-serif;
        /* 使用微软雅黑字体 */
    }
}
</style>

